<?php
use Illuminate\Support\Facades\Route;

$routes = Route::getRoutes();

$path = app_path();
$path=substr($path,0,-3);
?><ul class="ul">
<?php
foreach($routes as $key=>$route) {
    $con='';
    $cat='';
    if(isset($route->action['controller'])){
        $p=$route->action['controller'];
        $con=$path.substr($p,0,strpos($p,'@')).'.php';
       //  $con.=substr($p,strpos($p,'@'));
        $cat='<span class="cat">'.substr($p,strpos($p,'@')).'</span>';
    }

/*
    if(isset($route->action['controller'])){
        $p=$route->action['controller'];
        $con=$path.'<span class="cont">'.substr($p,0,strpos($p,'@')).'</span>'.'.php';
         $con.='<span class="cat">'.substr($p,strpos($p,'@')).'</span>';
    }
    ?><li class="clearfix"><span class="name"><?php
    echo '/'.$route->uri;
    ?></span><p class="controller"><?php
        echo $con;
    ?></p></li><?php
      */

   ?><li class="clearfix"><span class="name"><?php
    echo '/'.$route->uri;
    ?></span><input class="controller" value="<?php
        echo $con;
            ?>"/><?= $cat ?></li><?php


}
   ?>
</ul>
<style>
    .ul{
        /*width: 100%;*/
        margin-top:50px;
        font-size: 20px;
    }
    .ul li{
        border-bottom: 1px #d8d8d8 solid;
        position: relative;
        padding-bottom: 10px;
        padding-top: 10px;
      /*  list-style-type: korean-hanja-informal;*/
        /*margin-left: 100px;*/
        list-style-type:none;
    }
   body .ul li:hover{
        background-color: #c8f0f3;
    }
    .ul li:nth-child(odd){
        background-color: #f4feff;
    }
    .ul .name{
    color: #0047ff;
    display: block;
    float: left;
    margin-right: 56px;
    min-width: 300px;
    width: 96px;
    }
    .ul .controller{
    color: #5f5f5f;
    width: 714px;
    display: block;
    float: left;
    font-size: 20px;
    }
    .ul .controller .cont{
        color: #35a1ff;
        font-size: 20px;
    }
    .ul  .cat{
        color: #35a1ff;
        font-size: 20px;
        margin-left: 30px;

    }




    .clearfix:before,.clearfix:after{
        content:"";
        display:table;
    }
    .clearfix:after{clear:both;}
    .clearfix{
        *zoom:1;/*IE/7/6*/
    }
</style>